package ngram.reader;

import exceptions.NegativeNumberException;
import exceptions.NegativeNumberOrZeroException;
import java.io.IOException;

/**
 *
 * @author g1wshimu
 */
public interface NGramFileReader {
        
    public String readNGram() throws Exception;
    
    public int readYear() throws IOException, NegativeNumberException;
    
    public long readVolumeCount() throws IOException, NegativeNumberException;
    
    public long readMatchCount() throws IOException, NegativeNumberException;
    
    public int readHeader() throws IOException, NegativeNumberOrZeroException;
}
